<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<!-- meta使用viewport以确保页面可自由缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- 引入 jQuery Mobile 样式 -->
<link rel="stylesheet" href="/Public/Home/css/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" href="/Public/Home/css/vv.css">
<link rel="stylesheet" href="/Public/Home/iconfont/iconfont.css">
<!-- 引入 jQuery 库 -->
<script src="/Public/Home/js/jquery-1.11.3.min.js"></script>

<!-- 引入 jQuery Mobile 库 -->
<script src="/Public/Home/js/jquery.mobile-1.4.5.min.js"></script>
<script src="/Public/Home/js/layer/layer.js"></script>
<script src="/Public/Home/js/vv.js"></script>
</head>
<style>
.field_div {
	padding: 0;
}
.ui-btn-inline {
	width: 87%;
	margin-top: 2em;
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: none;
	box-shadow: none;
	background-color: #ffc703 !important;
}
.ui-shadow-inset {
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: none;
	box-shadow: none;
	background-color: rgba(0,0,0,0.5) !important;
}
</style>
<body>
<div data-role="page" class="bg_pic"> 
  <!-----------------------------头部 开始------------------------------>
  <div data-role="header" data-position="fixed" class="color_yellow1"> <a href="#" class="ui-btn ui-btn-icon-left border_none return"></a>
    <h1 class="shadow_none">{$Think.lang.__DENGLU__}</h1>
    <a href="#languege_btn" data-rel="popup" data-position-to="#languege" id="languege" class="ui-btn ui-btn-icon-left return langue_border">语言</a>
    <div data-role="popup" id="languege_btn" class="pad_05em" data-arrow="t">
      <ul class="switch_ul">
        <li><a class="switch_sty" href="?l=zh-cn">中文</a></li>
        <li><a class="switch_sty" href="?l=en-us">Englist</a></li>
        <li><a class="switch_sty" href="?l=zh-tw">繁體</a></li>
      </ul>
    </div>
  </div>
  <!-----------------------------头部 结束------------------------------> 
  <!-----------------------------主体内容 开始------------------------------>
  <div data-role="main" class="ui-content"> 
    <!------logo 开始------->
    <div class="">
      <div class="logo1_w70p"> <img src="/Public/Home/images/index_logo.png" width="100%"> </div>
    </div>
    <div class="clear"></div>
    <!------logo 结束-------> 
    <!------登录表单 开始------->
    <form class="w80p" method="post" action="" onsubmit="return false">
      <div class="field_div ui-field-contain">
        <label for="fullname" class="ui-hidden-accessible">{$Think.lang.__SHURUZHANGHAODIANHUAHAO__}</label>
        <input type="text" name="fullname" id="fullname" placeholder="{$Think.lang.__SHURUZHANGHAODIANHUAHAO__}">
      </div>
      <div class="field_div ui-field-contain">
        <label for="password" class="ui-hidden-accessible">{$Think.lang.__QINGSHURUNIDEMIMA__}</label>
        <input type="password" name="password" id="password" placeholder="{$Think.lang.__QINGSHURUNIDEMIMA__}">
      </div>
      <input class="w100p" type="button" onclick="ajaxSubmit();" data-inline="true" value="{$Think.lang.__DENGLU__}">
    </form>
    <!------登录表单 结束------->
    <div class="w80p">
      <h1 class="line_hight3 mt3 modular_title bor_down_yellow textalign_c"> <a class="col_f_a" href="{:U('Login/find_pwd')}" data-ajax="false">{$Think.lang.__WANGJIMIMA__}</a> </h1>
      <h1 class="modular_title textalign_c"> <a class="col_f_a" href="{:U('Reg/index')}" data-ajax="false" >{$Think.lang.__ZHUCE__}</a> </h1>
    </div>
  </div>
  <!-----------------------------主体内容 结束------------------------------> 
</div>
</body>
</html>
<script type="text/javascript">
	function ajaxSubmit(){
		var username = $("[name='fullname']").val();
		var password = $("[name='password']").val();
		if(username == ""){
			layer.msg("{$Think.lang.__SHURUNIDEZHANGHAO__}");
			$("#fullname").focus();return false;
		}
		if(password == ""){
			layer.msg("{$Think.lang.__QINGSHURUNIDEMIMA__}");
			$("#fullname").focus();return false;
		}
		//正则验证手机号码
		
		$.ajax({
			url:"{:U('Login/login')}",
			type:'POST',
			data:{'username':username,'password':password},
			dataType:'JSON',
			success:function(data){
				//alert(data.info);
				layer.msg(data.info);
				if(data.status == 1){
					location.href = "{:U('Index/index')}";
				}
			}
		
		})
	}
</script>